export class GlobalVariable {
  static readonly BASE_URL: string = 'https://consult-api.itheima.net' // 基础地址
  static readonly TIME_OUT: number = 10000 // 超时时间
  // 加载文本
  static readonly LOADING_TEXT: string = '加载中'
  // 成功判断CODE
  static readonly SUCCESS_CODE: number = 10000 // 判断code

  static readonly HOST_URL: string = 'http://localhost:5173/#'
}

export class HttpUrlVariable {
  static readonly LOGIN_URL: string = '/login/password' // 登录请求
  static readonly SEND_CODE_URL: string = '/code' //验证码地址
  static readonly LOGIN_CODE_URL: string = '/login' //验证码登录
  static readonly MY_USER_URL: string = '/patient/myUser' // 我的个人信息地址
  static readonly PATIENT_LIST_URL: string = '/patient/mylist' //查询患者列表
  //删除患者
  static readonly DEL_PATIENT_ITEM_URL: string = `/patient/del/`
  //添加患者
  static readonly ADD_PATIENT_ITEM_URL: string = '/patient/add'
  //患者详情
  static readonly LOOK_PATIENT_ITEM_URL: string = '/patient/info/'
  //编辑患者
  static readonly EDIT_PATIENT_ITEM_URL: string = '/patient/update'
  //查询科室
  static readonly DEP_ALL_URL: string = '/dep/all'
  //上传路径
  static readonly UPLOAD_URL: string = '/upload'
  //预订单下单地址
  static readonly PRE_ORDER_URL: string = '/patient/consult/order/pre'
  static readonly CREATE_ORDER_URL: string = '/patient/consult/order' // 创建订单地址
  static readonly PAY_URL: string = '/patient/consult/pay' //支付宝接口
  static readonly MEDICAL_LIST_URL: string = '/patient/consult/order/list' //问诊记录-订单列表
}

export class PACKAGE {
  static readonly ARCHIVE_PACKAGE: string = 'subpkg_archive'
  static readonly CONSULT_PACKAGE: string = 'subpkg_consult'
  static readonly MEDICAL_PACKAGE: string = 'subpkg_medical'
}

export class PAGE_PATH {
  static readonly LOGIN_PAGE: string = '/pages/login/index'
  static readonly HOME_PAGE: string = '/pages/index/index'
  static readonly ARCHIVE_LIST_PAGE: string = `/${PACKAGE.ARCHIVE_PACKAGE}/list/index` // 列表页
  static readonly ARCHIVE_FORM_PAGE: string = `/${PACKAGE.ARCHIVE_PACKAGE}/form/index` // 表单页面
  static readonly CONSULT_PAY_PAGE: string = `/${PACKAGE.CONSULT_PACKAGE}/payment/index` // 支付页面
  static readonly ROOM_PAGE: string = `/${PACKAGE.CONSULT_PACKAGE}/room/index`
  static readonly MEDICAL_LIST_PAGE: string = `/${PACKAGE.MEDICAL_PACKAGE}/medicalList/index` //问诊列表
}
